/*
For TodaysWorld English to Telugu Dictionary...
Author: Aravind (www.todaysworld.in{at}gmail.com)
*/

function validateForm() { 
        var okSoFar=true 
                with (document.EMAIL) 
                { 
                        var foundAt = email.value.indexOf("@",0) 
                                if (foundAt < 1 && okSoFar) 
                                { 
                                        okSoFar = false 
                                                alert ("Please enter a valid email address.") 
                                                email.focus() 
                                } 
                        if (name.value=="" && okSoFar) 
                        { 
                                okSoFar=false 
                                        alert("Please enter your name.") 
                                        name.focus() 
                        } 
                        
                        if (mess.value=="" && okSoFar) { 
                                okSoFar=false 
                                        alert("Please enter your message.") 
                                        mess.focus() 
                        } 
                        
                        if (okSoFar==true)  submit(); 
                } 
}